'''

循环,while for
重复的做一件事


指令
break 崴脚
continue 偷偷系鞋带
'''
import random

target = random.randint(1,1000)
print(target)
# while bool:

count = 1

while count<=10:
    print("回合"+str(count))

    num = int(input('请输入你猜测的值: '))

    if False:
        print("有问题")
    else:
        # 同级别的判断条件.一般是先从苛刻的开始,到宽松
        if num == target:
            print("ok")
            print("游戏结束")
            break #当前代码结束,后面的代码白写

        elif num > target:
            print("大")
        elif num <= target:
            print("猜小")
        else:
            print('不ok')


    count+=1

count1 = 0;
while count1<=10:
    count1+=1
    if count1==9:
        break
    print(count1)
#猜测

